import { Notification,Message } from 'element-ui';

let message=Message
let notice=Notification

let duration=3000

let offset=90

export function successMessage(title,msg="消息") {
    message.success({
        title:title,
        message:msg,
        offset:offset,
        duration:duration
    })
}


export function normalMessage(title,msg="消息") {
    message.info({
        title:title,
        message:msg,
        duration:duration,
        offset:offset,
    })

}

export function warningMessage(title,msg="消息") {
    message.warning({
        title:title,
        message:msg,
        offset:offset,
        duration:duration
    })

}

export function errorMessage(title,msg="消息") {
    message.error({
        title:title,
        message:msg,
        duration:duration,
        offset:offset,
    })

}